﻿#region
/*******************************************************************************
** File Name:		    IRights.cs
** Creator:		        chao.jiang 
** EMail:               chao.jiang 
** Create date:	        
** Latest Modifier:
** Latest Modify date:
** Description:		    
** Modify History:
**
** Code Review:
**
** Version number:       1.0.0
*********************************************************************************/
#endregion
using System;
using System.Data;
using System.Collections.Generic;
using Phoenix.Entity;
namespace Phoenix.Respository
{
    public interface IRights
    {
    #region  Auto Generation
    
        void AddRights(ERights rights);

        void UpdateByRightID(ERights rights);

		void DeleteByRightID(System.Int32 rightID);
		 
        ERights GetByRightID(System.Int32  rightID);

	#endregion
        IList<ERights> GetAll();
        IList<ERights> GetByRightTypeID(System.Int32 rightTypeID);
    }
}